package com.dnjn.happiness.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dnjn.happiness.biz.domain.MomentsImage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Amber
 * @since 2023-10-04
 */
public interface MomentsImageMapper extends BaseMapper<MomentsImage> {

    @Select("select x.image_url from biz_moments_image i left join biz_image x on i.image_id =x.image_id where i.moments_id =#{momentsId}")
    List<String> selectImageUrlByMomentsId(@Param("momentsId") Long momentsId);


}
